﻿using Runtime.Settings;
using UnityEditor;
using UnityEngine;

public static class DFR_CDNProjectSettingsEditor {

    [SettingsProvider]
    private static SettingsProvider CreateProvider() => DFR_SettingsEditor<DFR_CDNProjectSettings>.CreateProvider(
        label: DFR_CDNProjectSettings.EDITOR_LABEL,
        scope: SettingsScope.Project,
        guiHandler: OnGUI,
        isResource: true);

    private static void OnGUI(SerializedObject serializedObject) {
        EditorGUILayout.PropertyField(serializedObject.FindProperty(DFR_CDNProjectSettings.EDITOR_FIELD_NAME_SETTINGS), new GUIContent("版控配置"));
        EditorGUILayout.PropertyField(serializedObject.FindProperty(DFR_CDNProjectSettings.EDITOR_FIELD_NAME_ASSETS), new GUIContent("资产"));
    }
}

